import {
	http
} from '@/common/https.js'

export const wxloginApi = (data) => {
	return http({
		url: '/wxlogin',
		method: 'post',
		data,
	})
}

export const customerOpercustApi = (data) => {
	return http({
		url: '/logistics/customer/opercust',
		method: 'get',
		data
	})
}


// 查询用户个人信息
export const getUserProfileApi = () => {
	return http({
		url: '/system/user/profile',
		method: 'get'
	})
}

// 退出登录
export const logoutApi = () => {
	return http({
		url: '/logout',
		method: 'post'
	})
}

// 获取当前角色权限字符
export const getUserRoleApi = (userId,data = { isTotal: true }) => {
	return http({
		url: `/system/user/${userId}`,
		method: 'get',
		data
	})
}

// 获取按钮权限
export const getPermsApi = () => {
	return http({
		url: '/getInfo',
		method: 'get'
	})
}